package com.wtwd.wtwddevice.model.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * @author zdl
 * @date 2022/5/26 19:20
 */
@Setter
@Getter
@Accessors(chain = true)
public class LocationInfo {


    private Double lat;

    private Double lng;

    private String address;

    /**
     * 定位精度
     */
    private String accuracy;

    /**
     * 速度
     */
    private Integer speed;

    /**
     * 角度
     */
    private String angle;

    /**
     * 总里程
     */
    private Integer mile;


    /**
     * 定位时间
     */
    private String locationTime;

    /**
     * 定位类型
     */
    private String locationType;



    public enum LocationTypeEnum {
        GPS("1"), LBS("2"), WIFI("3");
        private String code;

        LocationTypeEnum(String code) {
            this.code = code;
        }

        public String getCode() {
            return code;
        }
    }
}
